# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         test401
# Description:  列表的定义
# Author:       $赵怡蕾
# Date:         2019/1/16
#-------------------------------------------------------------------------------

list_obj = [1,2,3,4,5]
print(type(list_obj))
print(list_obj)

# 索引从0开始   左边从0开始  右边从-1开始
list_obj1 = ['赵姐姐',22,'1996-03-09',10000]
print(list_obj1[2])
print(list_obj1[-4])

# 切片是半闭合区间   [1:3]输出的是1，2索引
list2 = list_obj1[1:3]
print(list2)
list3 = list_obj1[-2:]
print(list3)
list4 = list_obj1[-3:-1]
print(list4)